package com.trgzs.bate.common.response;

import lombok.Data;

/**
 * @Author: dongl
 * @Email: dong980514280@gmail.com
 * @Create: 2025-02-28 14:27:01
 * @PS
 **/
@Data
public class PageResult<T> {

    /**
     * 当前页数
     */
    public int current;

    /**
     * 分页总数
     */
    public int pageSize;

    /**
     * 总记录数
     */
    public long total;

    /**
     * 数据列表
     */
    public T records;

    public PageResult() {
        this.total = 0L;
        this.records = null;
    }
    public PageResult(long total, T records) {
        this.total = total;
        this.records = records;
    }

}
